package com.uhealin.wt.boot.action;

import java.sql.SQLException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;

import com.uhealin.wt.boot.dao.SenDataContext;

import lava.rt.linq.Table;
import lava.wt.template.MDActionTemplate;
import lava.wt.template.MDSqlActionTemplate;

public abstract class MDSqlAction<M> extends MDSqlActionTemplate<M> {

	protected SenDataContext dataContext;
	
	@Autowired
	HttpServletRequest request;
	
	@Autowired
	HttpServletResponse response;
	
	@Autowired
	HttpSession session;
	
	@Autowired
	JdbcTemplate jdbcTemplate;
	
	Table<M> table;
	
	
	@Override
	public HttpServletRequest getRequest() {
		// TODO Auto-generated method stub
		return this.request;
	}

	@Override
	public HttpServletResponse getResponse() {
		// TODO Auto-generated method stub
		return this.response;
	}

	@Override
	public HttpSession getSession() {
		// TODO Auto-generated method stub
		return this.session;
	}

	

	
	
}
